package com.ete.lib.upload.unique

/**
 * Author:LiXian
 * <p>
 * Desc:唯一标识（雪花算法+随机6位数）
 * Version:1.0
 * date 2023/8/4 13:53
 */
object UniqueUtils {

    @JvmStatic
    fun getUniqueFlag(): String {
        val mSnow = SnowFlake(1, 1, 1)
        val randomSnow = mSnow.nextId().toString()
        val randomSix = (100000 until 999999).random().toString()
        return  randomSnow + randomSix
    }
}